//
//  TTDistributedNotificationCenter.swift
//  TTTools-macOS
//
//  Created by Toj on 3/5/21.
//

import Cocoa

class TTDistributedNotificationCenter: NSObject {

    // 发送通知给另一个应用
    func postMessageApp() {
        let center = DistributedNotificationCenter.default()
        
        center.postNotificationName(NSNotification.Name(rawValue: "ShowWindow Notification2"), object: "com.chinapyg.notification2", userInfo: nil, deliverImmediately: true)
    }
    
    // dock隐藏图标
    // NSApp.setActivationPolicy(.accessory)
}
